<?php
/**
 * Created by PhpStorm.
 * User: Menger
 * Date: 2020/12/09
 * Time: 12:00
 * Desc: 系统 - 轮播图
 */

namespace app\common\model;

use think\Model;

class Banner extends Base
{
    /**
     * 获取轮播图列表
     * @author Meng
     * @dateTime 2020-12-09
     * @return   [type]     [description]
     */
    public function getBannerList()
    {
        $where_banner = [
            ['is_del', 'eq', 0],
            ['is_valid', 'eq', 1]
        ];
        $list = $this->where($where_banner)->select();
        return $list;
    }
}